package com.alumni_circle.entity.me;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;

import java.io.Serializable;

/**
 * @author 龙小虬
 * @since 2020-07-06 21:33
 */
@Data
public class User implements Serializable {

    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "openid")
    private String openid;

    @ApiModelProperty(value = "头像")
    private String icon;

    @ApiModelProperty(value = "昵称")
    private String name;

    @ApiModelProperty(value = "学号")
    private String number;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "角色")
    private String role;

    @ApiModelProperty(value = "专业")
    private String professional;

    @ApiModelProperty(value = "删除")
    @TableLogic
    @JsonIgnore
    private String state;

    @ApiModelProperty(value = "社团")
    private String club;

    @JsonIgnore
    @ApiModelProperty(value = "登录账号")
    private String username;

    @JsonIgnore
    @ApiModelProperty(value = "登录密码")
    private String password;

    @ApiModelProperty(value = "创建时间")
    private String createTime;

    @ApiModelProperty(value = "更新时间")
    private String updateTime;

    @ApiModelProperty(value = "更新人")
    private String updateName;

    @ApiModelProperty(value = "email")
    private String email;

    @JsonIgnore
    private String updateBy;
}
